<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script src="../vue.js"></script>
</head>
<body>

	<div id="app">
		<child>
			<div slot="header" class="myHeader">header</div>
			<div slot="footer" class="myFooter">footer</div>
		</child>
	</div>

	<script>

		Vue.component('child', {
			template: `<div>
							<slot name="header">
								<h1>default header</h1>
							</slot>
							<h1>hello~!</h1>
							<slot name="footer"></slot>
						</div>`
		});

		Vue.component();

		var vm = new Vue({
			el: '#app',
		});

	</script>
</body>
</html>